package com.itmuch.providerdemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private TestService testService;

    @GetMapping("hello")
    public String hello() {
        this.testService.hello();
        System.out.println("我被调用了,哈哈，快乐！");
        return "hello ping'an";
    }
}
